From: Florian Müllner Date: Fri, 10 Aug 2012 13:23:35 +0000 (+0200) Subject: windowManager: Update animation of attached modals (again) X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6191 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ff25a5e251702f20688ed4aa0c9c628394822519;p=gnome-shell.git windowManager: Update animation of attached modals (again) The fade animation we started using after centering attached modal dialogs didn't work too well. So after going back to the scale animation, adjust it to scale from the center rather than the top, which works quite well. https://bugzilla.gnome.org/show_bug.cgi?id=681601 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index c535fef4d..9d438a9f6 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -301,6 +301,7 @@ const WindowManager = new Lang.Class({ this._checkDimming(actor.get_meta_window().get_transient_for()); if (this._shouldAnimate()) { actor.set_scale(1.0, 0.0); + actor.scale_gravity = Clutter.Gravity.CENTER; actor.show(); this._mapping.push(actor); @@ -377,6 +378,7 @@ const WindowManager = new Lang.Class({ } actor.set_scale(1.0, 1.0); + actor.scale_gravity = Clutter.Gravity.CENTER; actor.show(); this._destroying.push(actor);